package com.tarena.charging.order.mqtt;

import com.tarena.charging.order.feign.CostClient;
import com.tarena.charging.order.mapper.BillFailMapper;
import com.tarena.charging.order.mapper.BillSuccessMapper;
import com.tarena.charging.order.repository.ChargingProcessEntityRepository;
import com.tarena.charging.order.websocket.WebSocketServer;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 当前对象是一个bean对象
 */
@Component
@Slf4j
@Data
public class MqttContext {
    @Autowired
    private BillSuccessMapper billSuccessMapper;
    @Autowired
    private BillFailMapper billFailMapper;
    //mqtt消费者上下文
    //缺什么容器bean对象在这里注入使用
    @Autowired
    private ChargingProcessEntityRepository chargingProcessEntityRepository;
    //注入WebSocketServer
    @Autowired
    private WebSocketServer webSocketServer;
    //costclient
    @Autowired
    private CostClient costClient;
}
